package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品，同时要插入两张表，dish，dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //查询菜品，同时要查两张表，dish，dish_flavor
    public DishDto getWithFlavor(Long id);

    //修改菜品，同时要查两张表，dish，dish_flavor
    public void updateWithFlavor(DishDto dishDto);

    //删除菜品，同时要查两张表，dish，dish_flavor
    public void deleteWithFlavor(List<Long> ids);
}
